#ifndef ELECTRIC_DEVICE_H
#define ELECTRIC_DEVICE_H

#define MAX_LOAD
class ElectricDevice 
{
public:
	ElectricDevice(const char*, double);
	ElectricDevice(const ElectricDevice&);
	ElectricDevice& operator = (const ElectricDevice&);
	~ElectricDevice();
	void connectDevice();
	char* getCategory() const;
	double getPower() const;
	static bool isEnoughLoad(ElectricDevice&);
	static void updateSystemLoad();
private:
	char* category;
	double power;
	bool connected;
	static int systemPower;
	static int currPower;
};
#endif